import axios from "@/utils/request";

//获取数据
export const getArticle = async () => {
    return await axios.get("/api/page")
}
//删除数据
export const delArticle = async (id:number) => {
    return await axios.delete(`/api/page/${id}`)
}
//编辑数据
export const updataArticle = async (id:number,status:any) => {
    return await axios.patch(`/api/page/${id}`,{status})
}
//搜索
export const ssArticle = async (page:number,pageSize:number,name:string,path:string,status:string) => {
    return await axios.get(`/api/page?page=${page}&pageSize=${pageSize}&name=${name}&path=${path}&status=${status}`)
}